<h1>Edit Content</h1>
<br/>
<b>Category:</b> <%= @page.categoryName %> 
<hr/>
<% form_for(@page) do |f| %>
<p>These details determine what a customer sees on the page.</p>

<%= error_messages_for :page %>


  <% if @page.pageNameUrl == "index" %>
  	<ul>
  		<li>Cannot edit category names.</li>
  	</ul>
  <% else %>
    <b>Title:</b><br />
  	<p>
    	<%= f.text_field :pageName %>
  	</p>
  <% end %>

  <b>Options:</b><br/>
  <p><%= f.check_box :hasFlash %>Flash?</p>
  <p><%= f.check_box :hasBreadcrumb %>Breadcrumb?</p>
  <p><%= f.check_box :hasAutoTitle %>Auto-title?</p>
  
  <b>Text:</b><br />
  <p>
    <%= f.text_area :HTMLContent %>
  </p>

  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>

<br/>
